using SqlSugar;

/*
 * @author : xkdong@163.com
 * @date : 2024-3-15
 * @desc : 入组表
 */
namespace YOUYOU.Models.Entities.DBModels
{
    /// <summary>
    /// 入组表
    /// </summary>
    [SugarTable("record_enrollment", TableDescription = "入组表")]
    public class RecordEnrollment
    {
        /// <summary>
        /// 入组ID
        /// </summary>
        [SugarColumn(ColumnName = "Id" ,IsIdentity = true, IsPrimaryKey = true)]
        public int Id{ get; set; }
        
        /// <summary>
        /// 病人ID
        /// </summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string? PatientId{ get; set; }
        
        /// <summary>
        /// 慢病分组ID
        /// </summary>
        [SugarColumn(ColumnName = "GroupId")]
        public string? GroupId{ get; set; }
        
        /// <summary>
        /// 入组日期
        /// </summary>
        [SugarColumn(ColumnName = "EnrollmentDate")]
        public DateTime? EnrollmentDate{ get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Disease")]
        public string? Disease{ get; set; }
        
    }


    [SugarTable("record_enrollment", TableDescription = "入组表")]
    public class RecordEnrollments
    {
        /// <summary>
        /// 入组ID
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsIdentity = true, IsPrimaryKey = true)]
        public int Id { get; set; }

        /// <summary>
        /// 病人ID
        /// </summary>
        [SugarColumn(ColumnName = "PatientId")]
        public string? PatientId { get; set; }

        /// <summary>
        /// 慢病分组ID
        /// </summary>
        [SugarColumn(ColumnName = "GroupId")]
        public int? GroupId { get; set; }

        /// <summary>
        /// 入组日期
        /// </summary>
        [SugarColumn(ColumnName = "EnrollmentDate")]
        public DateTime? EnrollmentDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Disease")]
        public string? Disease { get; set; }

    }
}